/*
 * GenDef.h
 *
 *  Created on: 21/lug/2011
 *      Author: marcolembo
 */

#ifndef GENDEF_H_
#define GENDEF_H_
namespace ml
{

    enum
    {
        MIDI_BAUD_RATE = 31250
    };

//======================================
// PIN MAPPING
//======================================

    //NUNCHUK
    // 0 Analogico = C
    // 1 Analogico = D

    //FOOTSWITCHES
    const short pinMuxZ  = 2; //in
    const short pinMuxS0 = 3; //out
    const short pinMuxS1 = 4; //out
    const short pinMuxS2 = 5; //out

    //ULTRASONIC
    const short pinEchoUltrasonicDig = 6; //echo
    const short pinDataUltrasonicDig = 7; //trig(data)

    //LIQUID CRYSTAL DISPLAY with ShiftRegister
    //   Clock on pin 12
    //   Data on pin 11
    //   Enable on pin 10
    const short pinLCD_En_Dig  = 10;
    const short pinLCD_Data_Dig = 11;
    const short pinLCD_Clk_Dig = 12;

    //MENU BUTTONS //TODO
    const short pinMenuPot_Selector_An  = A0;
    const short pinMenuBtn_Esc_Enter_An = A1;
    //short pinMenuBtn_Enter_An   = A2;

//======================================
//SOGLIE
//======================================

    const short SOGLIA_ULTRASONIC = 30; //cm


    const short canaliMidi[] = {1, 1};

}

#endif /* GENDEF_H_ */
